package com.biter.bean;

import android.util.Log;
import net.sf.json.JSONObject;

public class MarketTickerBean {
	private String buy;
	private String sell;
	private String high;
	private String low;
	private String last;
	private String vol;
	
	public MarketTickerBean(String jsonData){
		JSONObject jsonObject = JSONObject.fromObject(jsonData);
		JSONObject tickerObject = (JSONObject)jsonObject.get("ticker");
		this.buy = tickerObject.getString("buy");
		this.sell = tickerObject.getString("sell");
		this.high = tickerObject.getString("high");
		this.low = tickerObject.getString("low");
		this.last = tickerObject.getString("last");
		this.vol = tickerObject.getString("vol");
	}
	
	public String getBuy() {
		return buy;
	}
	public void setBuy(String buy) {
		this.buy = buy;
	}
	public String getSell() {
		return sell;
	}
	public void setSell(String sell) {
		this.sell = sell;
	}
	public String getHigh() {
		return high;
	}
	public void setHigh(String high) {
		this.high = high;
	}
	public String getLow() {
		return low;
	}
	public void setLow(String low) {
		this.low = low;
	}
	public String getLast() {
		return last;
	}
	public void setLast(String last) {
		this.last = last;
	}
	public String getVol() {
		return vol;
	}
	public void setVol(String vol) {
		this.vol = vol;
	}
	
	

}
